Release 10.1A: OpenEdge Development:
Internationalizing Applications
Using UTF-16 in the ASC and CHR functions
To use UTF-16 in the
ASCfunction, use the following syntax:
chOne character, like
'A',"A", or'~U034e'.source-cpThe name of the source code page.
This returns one of the following values, which are platform independent:
To use UTF-16 in the
CHRfunction, use the following syntax:
nThe numeric value of the character.
target-cpThe name of the target code page.
This command interprets its input as one of the following platform-independent values:
When using UTF-16 in
CODEPAGE-CONVERT, the behavior of character strings as UTF-16 are sensitive to byte order and the presence of null bytes. The 4GL can handle UTF-16 strings asRAWorMEMPTRdata, and the use ofPUT-UNSIGNED-SHORTandGET-UNSIGNED-SHORTsolves any byte order machine dependencies.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |